package util;

public class Protocol {
    public String getRegisterInformation(String information) {
        String instruction = "Register:";
        return instruction + information;
    }

    public String getLogInInformation(String information) {
        String instruction = "LogIn:";
        return instruction + information;
    }

    public String getToFriendMessage(String information) {
        String instruction = "SendMassage:";
        return instruction + information;
    }

    public String getAddFriendMessage(String nickname, String friendID) {
        String instruction = "AddFriend:";
        return instruction + nickname + "," + friendID;
    }

    public String getOfflineMassage(String nickname) {
        String instruction = "GetOfflineMessage:";
        return instruction + nickname;
    }

    public String backOfflineMassageOk(String nickname) {
        String instruction = "offlinemassageok:";
        return instruction + nickname;
    }

    public String getAddFriendOkMessage(String nickname, String friendID) {
        String instruction = "AddFriendOk:";
        return instruction + nickname + "," + friendID;
    }

    public String getAddFriendNoMessage(String nickname, String friendID) {
        String instruction = "AddFriendNo:";
        return instruction + nickname + "," + friendID;
    }

}
